﻿// Heading Indicator - 航向仪
#pragma once

#include<stdio.h>
#include<graphics.h>
#include<math.h>
//#include "ege.h"
#include <iostream>

#ifndef PI
#define PI 3.14159265358979323846
#endif

void drawHI(double x0, double y0, double radius, double current_heading);
void pointOrange(double width, double height, double radius);
void pointPlane(double width, double height, double radius);
void scale(double width, double height, double radius, double current_heading);
//double update_heading(double current_heading);
void dialFrame(double width, double height, double radius);
void buttonhi(double width, double height, double radius);
void specialPointOrange(double width, double height, double radius, double angle);
void screw(double DIAL_RADIUS, double CENTER_X, double CENTER_Y);//螺丝